Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 22, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an opt-in GitHub Actions release path for the existing
developing-today-backupWorker while leaving the operator deploy tool unchanged.uploadusescf workers versions createand stops before traffic changes.promotedispatch requires the full version UUID, checks the two required secret bindings and the existingGHB_EVENTSKV namespace ID, then promotes exactly that UUID at 100%. It verifies the latest deployment and/healthafterward.main, uses a protected GitHub environment, grantscontents: read, and pins checkout/setup-node by SHA plus Node/npm, cf, and Wrangler versions.cfTypeScript config generated bycf migrate; the existing Worker name, compatibility date, source entrypoint, and KV namespace are retained. The existingwrangler.toml,deploy.mjs, anddeploy.shremain unchanged.cf@1.0.0-rc.1was released Nov 17 and supports Config 1.0 / Build Output v1. Wrangler 4.163.0 is pinned to meet that release's delegated build requirement. cf release notes · Cloudflare Wrangler migration guidance · Node 24.22.0.Before first use
Configure the
developing-today-backup-productionGitHub environment with at least one required reviewer and restrict deployments tomain. AddCLOUDFLARE_ACCOUNT_IDas an environment variable and these environment secrets:CLOUDFLARE_API_TOKENwith Workers Editor scoped to this Worker,BACKUP_WORKER_BEARER, andBACKUP_WEBHOOK_SECRETfrom the existing Bitwarden entries. No repository settings or secrets were changed in this PR.Verification
npm ci --no-audit --no-fundsucceeded with Node24.22.0/ npm11.19.1; installedcf1.0.0-rc.1and Wrangler4.163.0matched the workflow pins.node --test test/index.test.mjs test/release-version.test.mjs: 16 passed.cf workers versions create --dry-runbuilt the Worker with fixture-only secrets and showed the existing KV namespace ID plus both secret binding names; no upload occurred.cf workers versions get --dry-run,cf workers deployments create --dry-run, andcf workers deployments list --dry-runrendered the expected API operations. The create dry-run showed the specified UUID at 100%; no API request or traffic change occurred.runscripts passedbash -n, andgit diff --checkpassed.No live deployment or traffic promotion was run. The GitHub environment protection and its secrets remain cutover prerequisites.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.